package com.ruoyi.caigou.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购订单主对象 purchase_order
 * 
 * @author Rosou
 * @date 2025-06-17
 */
public class PurchaseOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单唯一ID */
    private Long orderId;

    /** 订单编号(如CG001) */
    @Excel(name = "订单编号(如CG001)")
    private String orderNo;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supplierId;

    /** 采购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /** 预计到货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "预计到货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expectedArrival;

    /** 审核状态:0-待审核 1-通过 2-拒绝 */
    @Excel(name = "审核状态:0-待审核 1-通过 2-拒绝")
    private String auditStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String auditComment;

    /** 执行状态:0-未执行 1-部分执行 2-已完成 */
    @Excel(name = "执行状态:0-未执行 1-部分执行 2-已完成")
    private String executeStatus;

    /** 实际到货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "实际到货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualArrival;

    /** 删除标记:0-存在 2-删除 */
    private String delFlag;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }

    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }

    public void setExpectedArrival(Date expectedArrival) 
    {
        this.expectedArrival = expectedArrival;
    }

    public Date getExpectedArrival() 
    {
        return expectedArrival;
    }

    public void setAuditStatus(String auditStatus) 
    {
        this.auditStatus = auditStatus;
    }

    public String getAuditStatus() 
    {
        return auditStatus;
    }

    public void setAuditComment(String auditComment) 
    {
        this.auditComment = auditComment;
    }

    public String getAuditComment() 
    {
        return auditComment;
    }

    public void setExecuteStatus(String executeStatus) 
    {
        this.executeStatus = executeStatus;
    }

    public String getExecuteStatus() 
    {
        return executeStatus;
    }

    public void setActualArrival(Date actualArrival) 
    {
        this.actualArrival = actualArrival;
    }

    public Date getActualArrival() 
    {
        return actualArrival;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("supplierId", getSupplierId())
            .append("purchaseDate", getPurchaseDate())
            .append("expectedArrival", getExpectedArrival())
            .append("auditStatus", getAuditStatus())
            .append("auditComment", getAuditComment())
            .append("executeStatus", getExecuteStatus())
            .append("actualArrival", getActualArrival())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
